package com.shop.user.http;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Created by on 2019/3/14.
 */
@Data
public class PageResult implements Serializable {

    private Long total;

    private int page=1;

    private List<?> rows;

    private int pageSize=10;

    public PageResult() {
    }

    public PageResult(Long total, List<?> rows) {
        this.total = total;
        this.rows = rows;
    }

    public PageResult(Long total, List<?> rows, int page) {
        this.total = total;
        this.rows = rows;
        this.page = page;
    }
}
